<form action="{{ path('user_signup') }}" method="post">
    <div class="input-prepend left">
        <span class="add-on userName"></span>
        {{ form_widget(form.loginName, {'attr': {'class': 'input-large', 'placeholder': 'Username' | trans} }) }}
    </div>

    <div class="input-prepend left">
        <span class="add-on email">@</span>
        {{ form_widget(form.email, {'attr': {'class': 'input-large', 'placeholder': 'Email' | trans} }) }}
    </div>

    <div class="input-prepend ">
        <span class="add-on password"></span>
        {{ form_widget(form.userPassword.first, {'attr': {'class': 'input-large', 'placeholder': 'Password' | trans} }) }}
    </div>

    <div class="input-prepend ">
        <span class="add-on password"></span>
        {{ form_widget(form.userPassword.second, {'attr': {'class': 'input-large', 'placeholder': 'Re-enter Password' | trans} }) }}
    </div>

    {{ form_rest(form) }}

    <div class="control-group">
        <div class="controls">
            <button type="submit" class="btn signUpBtn right">{% trans %}Sign Up{% endtrans %}</button>
        </div>
    </div>
</form>